# -*- coding: utf-8 -*-

# Tests for test utilities (meta!)

from unittest import TestCase
from stream.utils import unorderedEqual

class SequenceTest(TestCase):
    def setUp(self):
        self.default_list = ["word", "other", "word", "word", "other", "one more"]

    def testUnorderedEqualTrue(self):
        list2 = ["word", "word", "word", "other", "other", "one more"]
        self.assertTrue(unorderedEqual(self.default_list, list2))

    def testUnorderedEqualFalse(self):
        list2 = list(set(self.default_list))
        self.assertFalse(unorderedEqual(self.default_list, list2))

    def testUnorderedEqualAddWord(self):
        list2 = list(self.default_list)
        list2.append("aaaaaaa")
        self.assertFalse(unorderedEqual(self.default_list, list2))
